package com.xmy.cultivate.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * 教师备课资料设置
 * </p>
 *
 * @author hpiggy
 * @since 2025-08-16
 */
@TableName("train_prepare")
@Data
@ApiModel(value = "TrainPrepare对象", description = "教师备课资料设置")
public class TrainPrepare implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;

    @ApiModelProperty("年份")
    private Integer yearPart;

    @ApiModelProperty("学期")
    private Integer quarterNum;

    @ApiModelProperty("年级")
    private Integer yearClassId;

    @ApiModelProperty("科目")
    private Long subjectsId;

    @ApiModelProperty("班型")
    private Long classTypeId;

    @ApiModelProperty("课程类型，1精品课，2智能课，3刷题")
    private Integer lessonType;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createdAt;

    private Integer deleted;


    @ApiModelProperty("科目名")
    @TableField(exist = false)
    private String subjectsName;

    @ApiModelProperty("班型名")
    @TableField(exist = false)
    private String classTypeName;

    @ApiModelProperty("课程类型")
    @TableField(exist = false)
    private String lessonTypeName;

    @ApiModelProperty("版本id")
    private String versionId;

    @ApiModelProperty("版本名称")
    @TableField(exist = false)
    private String versionName;


}
